package com.aracky.assess.service;

import com.aracky.assess.model.entity.HrKpiUserPerformanceHeader;
import com.aracky.assess.model.excel.KpiUserHeaderExport;
import com.aracky.assess.model.form.HrKpiUserPerformanceHeaderForm;
import com.aracky.assess.model.form.HrKpiUserPerformanceHeaderTimeUpdateForm;
import com.aracky.assess.model.form.HrKpiUserPerformanceHeaderUpdateForm;
import com.aracky.assess.model.request.HrKpiUserPerformanceHeaderRequest;
import com.aracky.assess.model.vo.HrKpiUserPerformanceHeaderVO;
import com.aracky.common.vo.PageVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 用户绩效考核 服务类
 * </p>
 *
 * @author zzp
 * @since 2022-08-01 09:43:18
 */
public interface HrKpiUserPerformanceHeaderService extends IService<HrKpiUserPerformanceHeader> {
    /**
     * 新增权重配置
     * @param hrKpiUserPerformanceHeaderForm
     */
    public void saveHeader(HrKpiUserPerformanceHeaderForm hrKpiUserPerformanceHeaderForm);

    /**
     * 保存员工填写和评分人评分信息
     * @param headerUpdate
     * @return
     */
    boolean saveWriteInfo(HrKpiUserPerformanceHeaderUpdateForm headerUpdate);

    boolean submitInfo(HrKpiUserPerformanceHeaderUpdateForm headerUpdate);

    /**
     * 通过用户id查询header详情
     * @param userId
     * @return
     */
    public HrKpiUserPerformanceHeaderVO getHeaderInfo(Long userId);

    /**
     * 员工考核列表
     * @param hrKpiUserPerformanceHeaderRequest
     * @return
     */
    PageVO<HrKpiUserPerformanceHeaderVO> getHrKpiUserPerformanceHeaderList(HrKpiUserPerformanceHeaderRequest hrKpiUserPerformanceHeaderRequest);

    /**
     * 查询导出数据信息
     * @param hrKpiUserPerformanceHeaderRequest
     * @return
     */
    List<KpiUserHeaderExport> getExportDataList(HrKpiUserPerformanceHeaderRequest hrKpiUserPerformanceHeaderRequest);

    /**
     * 修改结束填报、评分时间
     * @param hrKpiUserPerformanceHeaderTimeUpdateForm
     * @throws Exception
     */
    void updateEndWriteAssessorTime(HrKpiUserPerformanceHeaderTimeUpdateForm hrKpiUserPerformanceHeaderTimeUpdateForm) throws Exception;

    /**
     * 根据id查询详情
     * @param id
     * @return
     */
    HrKpiUserPerformanceHeaderVO myGetById(Long id);
}
